<?php include ("../smarty/libs/Smarty.class.php");

include ("../includes/common.php");
init(); 
$func_ary=array("wholesale","retail");
if(fe($_REQUEST[Type]))
{
	category();
	die();
}
else{
	
		index();
}
function category(){
	$smarty=new Smarty();
	setcookie("flow","wholesale");
	$categories= get_row_con_info("category","","","","0");
	$smarty->assign("shop",$categories);
	$smarty->display('shops.tpl');
	die();
}


function index(){
	$smarty = new Smarty;
	$areas= get_row_con_info("areas","","","","0");
	$smarty->assign("areas",$areas);
  
	$smarty->display('index.tpl');
	die();
}

	


?>

